package oop.ex1.filters;
/**
 * an abstract class that all the name dependent filter inherits from
 * @author danalmog
 * @author danielshalev
 */
public abstract class NameDependent extends Filters {
	protected String name;
	protected boolean hasNot;
	
	/**
	 * Constructor for NameDependent class
	 * @param name the name to check
	 * @param hasNot indicates if the filter is a NOT filter
	 */
	public NameDependent(String name,boolean hasNot){
		this.name=name;
		this.hasNot=hasNot;
	}
	
	/**
	 * a getter that retirns the name
	 * @return the desired name
	 */
	public String getName(){
		return name;
	}
}
